import Layout from '@/layout'

const orderRouter = {
  path: '/order',
  component: Layout,
  redirect: '/order',
  name: 'order',
  meta: {
    title: '运营管理',
    icon: 'tree-table',
    noCache: true,
    roles: ['myClinic']
  },
  children: [
    {
      path: '/orderRecord',
      component: () => import('@/views/order/orderRecord'),
      name: '预支付订单查询',
      meta: {icon: 'edit', title: '预支付订单', roles: ['clinic:info']}
    },
    {
      path: '/placing',
      component: () => import('@/views/order/placingRecord'),
      name: '出库管理',
      meta: {icon: 'edit', title: '出库管理', roles: ['clinic:info']}
    }
  ]
}

export default orderRouter
